RemoveFromBack Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Removes an item from the back of the Deque. The indices of all existing items in the Deque are unchanged. This method is equivalent to RemoveAt(Count-1) but is a little more efficient.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public T RemoveFromBack()
Visual Basic (Declaration)
Public Function RemoveFromBack As T
Visual C++
public:
T RemoveFromBack ()

Remarks

Removing an item from the back of the Deque takes a small constant amount of time, regardless of how many items are in the Deque.

Exceptions

ExceptionCondition
System..::InvalidOperationExceptionThe Deque is empty.

See Also